package com.david.system.service.impl;

import com.david.system.pojo.Entity.MenuEntity;
import com.david.system.mapper.UserMapper;
import com.david.system.service.CommonService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
@Slf4j
public class CommonServiceImpl implements CommonService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public List<MenuEntity> getMenuDetails(ArrayList<String> pathList) {
        System.out.println( pathList.getClass());
        List<MenuEntity> menuEntityList = userMapper.selectMenuByPath(pathList);
        return menuEntityList;
    }
}
